<template>
	<view>
		<!-- 提示信息弹窗 -->
		<uni-popup ref="message" type="message">
			<uni-popup-message :type="msgType" :message="messageText" :duration="2000"></uni-popup-message>
		</uni-popup>
	</view>
</template>

<script>
	export default {
		name: "w-pop-up",
		props: {
			'msgType': {
				type: String,
				default: 'success'
			},
			'messageText': {
				type: String,
				default: ''
			},
			'duration': {
				type: Number,
				default: 2000
			}
		},
		onLoad() {
			this.$refs.message.open()
		}
		data() {
			return {

			};
		}
	}
</script>

<style>

</style>
